package com.eneat.smartrule.model;

import com.eneat.smartrule.enums.ActionTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RuleAction {

    @Schema(description = "动作类型")
    private ActionTypeEnum actionType;

    @Schema(description = "动作目标")
    private Object target;

    @Schema(description = "目标类型")
    private Class<?> targetType;

    @Schema(description = "目标bean")
    private String targetBeanName;

    @Schema(description = "目标方法名称")
    private String methodName;

    @Schema(description = "目标ip")
    private String host;

    @Schema(description = "可变参数列表")
    private Map<String, Object> parameters;


}
